<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-userInvite-edit" th:object="${userInvite}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
	            <div class="form-group">	
                <label class="col-sm-3 control-label">用户id：</label>
                <div class="col-sm-8">
                    <input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">一级：</label>
                <div class="col-sm-8">
                    <input id="one" name="one" th:field="*{one}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">二级：</label>
                <div class="col-sm-8">
                    <input id="two" name="two" th:field="*{two}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">三级：</label>
                <div class="col-sm-8">
                    <input id="three" name="three" th:field="*{three}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">四级：</label>
                <div class="col-sm-8">
                    <input id="four" name="four" th:field="*{four}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">五级：</label>
                <div class="col-sm-8">
                    <input id="five" name="five" th:field="*{five}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">六级：</label>
                <div class="col-sm-8">
                    <input id="six" name="six" th:field="*{six}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">总代理：</label>
                <div class="col-sm-8">
                    <input id="genAgent" name="genAgent" th:field="*{genAgent}" class="form-control" type="text">
                </div>
            </div>
		            <div class="form-group">	
                <label class="col-sm-3 control-label">扩展字段(用户统计团队人数)：</label>
                <div class="col-sm-8">
                    <input id="ext" name="ext" th:field="*{ext}" class="form-control" type="text">
                </div>
            </div>
							</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/userInvite"
		$("#form-userInvite-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-userInvite-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
